#include "bullet.h"

bullet::bullet()
{

}

bullet::bullet(int A, int T,int X, int Y)
{
 attack=A;
 type=T;
 x=X;
 y=Y;

}

void bullet::RenewPos()
{
    if(type==1) //我方子弹
    y-=speed;
    else if(type==2)    //敌方子弹
    y+=speed;
}
